package com.san.hkhospital.service.impl;

import com.san.hkhospital.entity.Position;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.san.hkhospital.entity.DeptSection;
import java.util.List;
import com.san.hkhospital.entity.DeptSectionExample;
import com.san.hkhospital.mapper.DeptSectionMapper;
import com.san.hkhospital.service.DeptSectionService;
/**
 * ClassName:DeptSectionServiceImpl
 * PackageName:com.san.hkhospital.service.impl
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 14:38
 * 
 */
 
 
@Service
public class DeptSectionServiceImpl implements DeptSectionService{

    @Resource
    private DeptSectionMapper deptSectionMapper;

    @Override
    public long countByExample(DeptSectionExample example) {
        return deptSectionMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(DeptSectionExample example) {
        return deptSectionMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer deptId,Integer sectionId) {
        return deptSectionMapper.deleteByPrimaryKey(deptId,sectionId);
    }

    @Override
    public int insert(DeptSection record) {
        return deptSectionMapper.insert(record);
    }

    @Override
    public int insertSelective(DeptSection record) {
        return deptSectionMapper.insertSelective(record);
    }

    @Override
    public List<DeptSection> selectByExample(DeptSectionExample example) {
        return deptSectionMapper.selectByExample(example);
    }

    @Override
    public int updateByExampleSelective(DeptSection record,DeptSectionExample example) {
        return deptSectionMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(DeptSection record,DeptSectionExample example) {
        return deptSectionMapper.updateByExample(record,example);
    }

    @Override
    public List<DeptSection> selectDeptSection() {
        return deptSectionMapper.selectByExample(null);
    }


}
